<?php
	header('Content-Type:application/json');
	require('init.php');
	$sql = "SELECT * FROM yanxuan_product_img";
	$result = mysqli_query($conn,$sql);
	$list = mysqli_fetch_all($result,MYSQLI_ASSOC);
	echo json_encode($list);